package com.itheima.eurekafeignclient.service;

import entity.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.http.ResponseEntity;
import java.util.Map;

@FeignClient(name = "eureka-provider-another")
@Service
public interface FeignServiceStudent {


    @RequestMapping("/hello2")
    public ResponseEntity<Student> getStudent() ;
}